package com.learn.egweibo2.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserRegParam {
    @ApiModelProperty(value = "昵称",required = true,dataType = "String")
    private String nickname;
    @ApiModelProperty(value = "密码",required = true,dataType = "String")
    private String password;
    @Size(min = 6,max = 16,message = "用户名必须在6-12位之间")
    @ApiModelProperty(value = "用户名",required = true,dataType = "String")
    private String username;
}
